<template>
  <view>
    <view class="w100 rowscl rowsm pt-162" @click="call()">
      <image src="/static/icon_kf.png" class="w-252 h-252" mode=""></image>
      <view class="fs-30 mt-32 fw-b col333">{{tel}}</view>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        tel:''
      };
    },
	onLoad() {
		this.getInfo()
	},
	methods:{
		getInfo(){
			this.$tools.axiosFromToken('POST','proconfigtext/getById',{id:1},'加载中').then(res => {
				if(res.code != 200) return this.$tools.showtt(res.msg)
				let {data:{configurationContent}} = res
				this.tel = configurationContent
			})
		},
		call(){
			uni.makePhoneCall({
				phoneNumber:this.tel
			})
		}
	}
  }
</script>

<style lang="scss">

</style>
